	/**
	 * promise封装实现异步ajax网络请求
	 */
	function ajaxPromise(obj) {
	    const promise = new Promise(function(resolve, reject) {
	        //封装ajax异步任务
	        ajax({
	            method: obj.method,
	            url: obj.url,
	            data: obj.data,
	            success: function(data) {
	                resolve(data)
	            },
	            error: function(error) {
	                reject(error)
	            }
	        })
	    })
	    return promise
	}